package net.dl.ss.domain;

/**
 * @author yakovlev.yuriy@gmail.com
 * @since 12.8.2008
 */
public class Result {
	private Long id;
	private Long roundId;
	private Long coupleId;
	private Long adjudicatorId;
	private String remark;
	private Integer place;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getRoundId() {
		return roundId;
	}
	public void setRoundId(Long roundId) {
		this.roundId = roundId;
	}
	public Long getCoupleId() {
		return coupleId;
	}
	public void setCoupleId(Long coupleId) {
		this.coupleId = coupleId;
	}
	public Long getAdjudicatorId() {
		return adjudicatorId;
	}
	public void setAdjudicatorId(Long adjudicatorId) {
		this.adjudicatorId = adjudicatorId;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getPlace() {
		return place;
	}
	public void setPlace(Integer place) {
		this.place = place;
	}
	
	public String toXML() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("<result>");
		buffer.append("<id>" + id + "</id>");
		buffer.append("<roundId>" + roundId + "</roundId>");
		buffer.append("<coupleId>" + coupleId + "</coupleId>");
		buffer.append("<adjudicatorId>" + adjudicatorId + "</adjudicatorId>");
		buffer.append("<remark>" + remark + "</remark>");
		buffer.append("<place>" + place + "</place>");
		buffer.append("</result>");
		return buffer.toString();
	}

}
